package pers.cj.pdos.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pers.cj.pdos.entity.GoodsCost;
import pers.cj.pdos.mapper.GoodsCostMapper;
import pers.cj.pdos.service.IGoodsCostService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 当每次进货、进货入库、组装拆卸、组装拆卸入库时，商品成本表 就增加对应商品的总数量和总金额，计算成本价；当每次进货、进货 服务实现类
 * </p>
 *
 * @author chenj
 * @since 2020-03-06
 */
@Service
public class GoodsCostServiceImpl extends ServiceImpl<GoodsCostMapper, GoodsCost> implements IGoodsCostService {
    @Autowired
    GoodsCostMapper goodsCostMapper;
    @Override
    public List<GoodsCost> listByGoodsMap(Map map) {
        return goodsCostMapper.listByGoodsMap(map);
    }

    @Override
    public List<GoodsCost> listByGoodsList(List list) {
        return goodsCostMapper.listByGoodsList(list);
    }
}
